start{
  serverBootstrap.setPipelineFactory(new PeerWirePipelineFactory(controller,threadPool));
  clientBootstrap.setPipelineFactory(new PeerWirePipelineFactory(controller,threadPool));
  try {
    serverChannel=serverBootstrap.bind(new InetSocketAddress(Inet4Address.getByName("0.0.0.0"),listenPort));
 catch (  UnknownHostException e) {
}
stop{
  clientBootstrap.releaseExternalResources();
  serverChannel.close();
  serverBootstrap.releaseExternalResources();
}
connect{
  final ChannelFuture future=clientBootstrap.connect(peer.getAddress()).awaitUninterruptibly();
    final PeerWireProtocolPeer protocolPeer=new PeerWireProtocolPeer(future.getChannel());
    protocolPeer.setTorrentPeer(peer);
    peer.setProtocolPeer(protocolPeer);
    return true;
    return false;
}
